package com.cty.C_SortAlgorithms.F_QuickSort;

import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/17 9:27
 * @Description:  测试快速排序
 * @version: 1.0
 */
public class QuickSortApp {
    public static void main(String[] args) {
        QuickSort2 array = new QuickSort2(100);
//        QuickSort2 array = new QuickSort2(100);

        long key;
        for(int i=0; i<15; i++){
            key = (long) (Math.random()*99);
            array.insert(new DataItem(key));
        }
        array.displayArray();

        array.quickSort();
        array.displayArray();

    }  // end main()
}  // end BubbleSortApp{}

/**
 * 10 0 61 59 90 44 25 37 65 73 27 12 45 16 78
 * 0 10 12 16 25 27 37 44 45 59 61 65 73 78 90
 */
